//--------------------------------------------------------------
//
// Qizhi Zhang 
// ezhung@gmail.com
// http://www.moorwind.com
//
//--------------------------------------------------------------
package reader.dao
{
	import __AS3__.vec.Vector;
	
	import reader.model.vo.BlogLabelVO;
	import reader.model.vo.BlogSourceVO;
	import reader.model.vo.UserVO;
	
	public interface IBlogSourceDAO
	{
		function insertBlogSource(blogSource:BlogSourceVO, user:UserVO):int;
		
		function insertBlogsourceList(list:Vector.<BlogSourceVO>, user:UserVO):void;
		
		function updateBlogSource(blogSource:BlogSourceVO):Boolean;
		
		function updateBlogSourceList(blogSource:Vector.<BlogSourceVO>):void
		
		function updateBlogSourcesLabel(blogSources:Vector.<BlogSourceVO>, labelid:int):void;
		
		function resetBlogSourceLabels(labels:Vector.<BlogLabelVO>):void;
		
		function resetBlogSourceLabel(labelid:int):Boolean;
		
		function deleteBlogSource(blogSource:BlogSourceVO):Boolean;
		
		function deleteBlogSourceByUser(user:UserVO):Boolean;
		
		function deleteBlogSources(blogSources:Vector.<BlogSourceVO>):void;
		
		function selectBlogSource(blogsourceId:int):BlogSourceVO;
		
		function selectAllBlogSource(user:UserVO):Vector.<BlogSourceVO>;
		
		function getCount(user:UserVO):uint;
	}
}